using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QuanLyPhongKham
{
    public partial class frmDoingay : BaseUserControl
    {
        public string s_ngay = "", s_mmyy = "";

        public frmDoingay()
        {
            InitializeComponent();
        }

        private void frmDoingay_Load(object sender, EventArgs e)
        {
            mm.Value = decimal.Parse(DateTime.Now.Month.ToString());
            decimal t = decimal.Parse(DateTime.Now.Year.ToString());
            yyyy.Maximum = t + 3; yyyy.Value = t;
        }

        private void butDongy_Click(object sender, EventArgs e)
        {
            s_mmyy = mm.Value.ToString().PadLeft(2, '0') + yyyy.Value.ToString().Substring(2);
            s_ngay = ngay.Text;
            //this.Close();
        }

        private void butKetthuc_Click(object sender, EventArgs e)
        {
            //this.Close();
        }
    }
}